# -*- encoding:utf-8 -*-

import semanticscholar_search as sem_s


def main():
    scholar = sem_s.SemanticScholar()
    filename, _ = scholar.catch_title(keywords="traffic road mask", page_count=20)
    results = sem_s.json_file_to_objects(filename)
    translated_filename, translated_results = scholar.translate_results(results,
                                                                        filename.split(".")[0] + "_translate.json")
    # scholar.download(translated_results)


if __name__ == "__main__":
    main()
